<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: async/concurrent_task_loop.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Public API.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_ddc98e6e1a9e0f6adcacab8ac7c1f855.html">async</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">concurrent_task_loop.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceflow"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow.html">flow</a></td></tr>
<tr class="memdesc:namespaceflow"><td class="mdescLeft">&#160;</td><td class="mdescRight">Catch-all namespace for the Flow project: A collection of various production-quality modules written in modern C++17, originally by ygoldfel. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespaceflow_1_1async"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1async.html">flow::async</a></td></tr>
<tr class="memdesc:namespaceflow_1_1async"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flow module containing tools enabling multi-threaded event loops operating under the asynchronous-task proactor pattern, by providing a streamlined API around boost.asio event loops with added advanced task- and thread-scheduling features. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:adab04f47b40b92fffbe12bc33fadd223"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1async.html#adab04f47b40b92fffbe12bc33fadd223">flow::async::optimal_worker_thread_count_per_pool</a> (log::Logger *logger_ptr, bool est_hw_core_sharing_helps_algo)</td></tr>
<tr class="memdesc:adab04f47b40b92fffbe12bc33fadd223"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assuming a planned thread pool will be receiving ~symmetrical load, and its UX-affecting (in particular, per-op latency-affecting) operations are largely between processor and RAM: Returns the # of threads to store in that pool for efficient performance.  <a href="namespaceflow_1_1async.html#adab04f47b40b92fffbe12bc33fadd223">More...</a><br /></td></tr>
<tr class="separator:adab04f47b40b92fffbe12bc33fadd223"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e200db7e5375de21d2568004a85dcad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1async.html#a3e200db7e5375de21d2568004a85dcad">flow::async::optimize_pinning_in_thread_pool</a> (log::Logger *logger_ptr, const std::vector&lt; util::Thread * &gt; &amp;threads_in_pool, bool est_hw_core_sharing_helps_algo, bool est_hw_core_pinning_helps_algo, bool hw_threads_is_grouping_collated, Error_code *err_code=nullptr)</td></tr>
<tr class="memdesc:a3e200db7e5375de21d2568004a85dcad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assuming the same situation as documented for <a class="el" href="namespaceflow_1_1async.html#adab04f47b40b92fffbe12bc33fadd223" title="Assuming a planned thread pool will be receiving ~symmetrical load, and its UX-affecting (in particul...">optimal_worker_thread_count_per_pool()</a>, and that indeed the pool now contains that number of running threads: Attempts to optimize thread-core-pinning behavior in that pool for efficient performance.  <a href="namespaceflow_1_1async.html#a3e200db7e5375de21d2568004a85dcad">More...</a><br /></td></tr>
<tr class="separator:a3e200db7e5375de21d2568004a85dcad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fa5292ae2e7dddd11a7fe5228b1e574"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1async.html#a7fa5292ae2e7dddd11a7fe5228b1e574">flow::async::reset_thread_pinning</a> (log::Logger *logger_ptr=nullptr, util::Thread *thread_else_ours=nullptr, Error_code *err_code=nullptr)</td></tr>
<tr class="memdesc:a7fa5292ae2e7dddd11a7fe5228b1e574"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the processor-affinity of the given thread &ndash; or calling thread &ndash; to be managed as the OS deems best.  <a href="namespaceflow_1_1async.html#a7fa5292ae2e7dddd11a7fe5228b1e574">More...</a><br /></td></tr>
<tr class="separator:a7fa5292ae2e7dddd11a7fe5228b1e574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a227e64eb71ec278f19d679d8411db627"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceflow_1_1async.html#a227e64eb71ec278f19d679d8411db627">flow::async::reset_this_thread_pinning</a> ()</td></tr>
<tr class="memdesc:a227e64eb71ec278f19d679d8411db627"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets processor-affinity of the calling thread; does not log; and throws on extremely unlikely system error.  <a href="namespaceflow_1_1async.html#a227e64eb71ec278f19d679d8411db627">More...</a><br /></td></tr>
<tr class="separator:a227e64eb71ec278f19d679d8411db627"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:32 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
